import request from '@/utils/request'

// 创建活动提交
export function createActivitySumbit(data) {
  return request({
    url: '/dt/activity-sumbit/create',
    method: 'post',
    data: data
  })
}

// 更新活动提交
export function updateActivitySumbit(data) {
  return request({
    url: '/dt/activity-sumbit/update',
    method: 'put',
    data: data
  })
}

// 删除活动提交
export function deleteActivitySumbit(id) {
  return request({
    url: '/dt/activity-sumbit/delete?id=' + id,
    method: 'delete'
  })
}

// 获得活动提交
export function getActivitySumbit(id) {
  return request({
    url: '/dt/activity-sumbit/get?id=' + id,
    method: 'get'
  })
}

// 获得活动提交分页
export function getActivitySumbitPage(query) {
  return request({
    url: '/dt/activity-sumbit/page',
    method: 'get',
    params: query
  })
}

// 导出活动提交 Excel
export function exportActivitySumbitExcel(query) {
  return request({
    url: '/dt/activity-sumbit/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
